<?php

$message = file_get_contents('div-layout.html');

//echo $message;
$to = 'sanjayniet84@gmail.com';
$subject = date('Y-m-d H:i:s l');


// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Vikas Dwivedi<vikas@ample.com>' . "\r\n";
$headers .= 'Reply-To: Dharam<dharmendra@example.com>' . "\r\n";
$headers .= 'Bcc: d.singh0187@gmail.com' . "\r\n";


$flag = mail($to, $subject, $message,$headers);

if($flag){
  echo "Mail sent Yeppp!!!";
} else {
  echo "Mewww :( Failure";
}
